package nivalsoul.kettle.plugins;

import java.util.ArrayList;
import java.util.List;
import java.util.Map;

import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson.JSONObject;
import com.google.common.collect.Maps;

/**
 * Hello world!
 *
 */
public class App 
{
    public static void main( String[] args ) throws Exception
    {
    	/*String filename = "F:\\FTP\\abc\\dd.xlsx";
		List<List<String>> lists = XLSX2CSV.readToList(new FileInputStream(filename));
		for (List<String> list : lists) {
			System.out.println(list);
		}*/
		/*JSONObject jsonObject = new JSONObject();
		System.out.println(jsonObject.getJSONArray("aa").size());*/
		
		List<Map<String,Object>> list = new ArrayList<Map<String, Object>>();
		Map<String, Object> map = Maps.newHashMap();
		map.put("k1", "adf");
		map.put("k2", 234);
		list.add(map);
		 map = Maps.newHashMap();
			map.put("k3", "ddd");
			map.put("k4", 123);
			list.add(map);
			System.out.println(JSON.toJSONString(list));
    }
}
